import request from "../utils/request"

export const getVehicleManagementApi = (params: Object): Promise<any> => {
      return request({
            url: '/manager/truckType/page',
            params
      })
}

//删除数据列表
export const deleteRowDataApi = (id: string): Promise<any> => {
      return request({
            url: `/manager/truckType/${id}`,
            method: 'DELETE'
      })
}
//添加数据
export const addListData = (data: object) => {
      return request({
            url: "/manager/truckType",
            method: 'POST',
            data
      })
}

//数据回显
export const echoData = (id:string) => {
      return request({
            url:`/manager/truckType/${id}`
      })
}